﻿<table>
	<tr>
		<?php echo form_open('adminStaff/deletePapers/'.$id); ?>
		<td colspan="2"><h2 class="title">Трудови</h2>
		</td>
		<td><input type="submit" name="submit" value="Избриши селектирани" />
		</td>
	</tr>
	<tr>
		<td colspan="2"><h2>Промени трудови</h2>
		</td>
	</tr>
	<?php 
	foreach ($papers as $paper)
	{
		echo "<tr><td colspan='2'><a href='".site_url('adminStaff/editPaper/'.$paper->idPapPk."/".$id)."'>".$paper->title."</a></td>";
		echo "<td><input type='checkbox' name=".$paper->idPapPk." value=".$paper->idPapPk." /></td></tr>";
	}
	?>
	<?php echo form_close(); ?>
	<tr>
		<td colspan="2"><h2>Додади труд</h2></td>
	</tr>

	<?php echo form_open('adminStaff/addPaper/'.$id); ?>
	<tr>
	<td>Наслов:</td>
		<td><input type="text" name="title" id="title" />
		</td>
	</tr>
	<tr>
	<td>Место:</td>
		<td><input type="text" name="place" id="place" />
		</td>
	</tr>
	<tr>
	<td>Држава:</td>
		<td><input type="text" name="country" id="country" />
		</td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" name="submit" value="Додади" />
		</td>
	</tr>
	<?php echo form_close(); ?>

</table>
